﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LogMonitorWeb.Master" AutoEventWireup="true" CodeBehind="LogDetailView.aspx.cs" Inherits="LogMonitorWeb.LogDetailView" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">

 <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
        DataKeyNames="id" DataSourceID="SqlDataSource1" EnableModelValidation="True" 
        Height="50px" Width="600px" CellPadding="4" ForeColor="#333333" 
    GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <CommandRowStyle BackColor="#C5BBAF" Font-Bold="True" />
        <EditRowStyle BackColor="#7C6F57" />
        <FieldHeaderStyle BackColor="#D0D0D0" Font-Bold="True" />
        <Fields>
            <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" 
                ReadOnly="True" SortExpression="id" />
            <asp:BoundField DataField="logName" HeaderText="logName" 
                SortExpression="logName" />
            <asp:BoundField DataField="logMessage" HeaderText="logMessage" 
                SortExpression="logMessage" />
            <asp:BoundField DataField="logMachine" HeaderText="logMachine" 
                SortExpression="logMachine" />
            <asp:BoundField DataField="logSource" HeaderText="logSource" 
                SortExpression="logSource" />
            <asp:BoundField DataField="logCategory" HeaderText="logCategory" 
                SortExpression="logCategory" />
            <asp:BoundField DataField="logType" HeaderText="logType" 
                SortExpression="logType" />
            <asp:BoundField DataField="eventID" HeaderText="eventID" 
                SortExpression="eventID" />
            <asp:BoundField DataField="user" HeaderText="user" SortExpression="user" />
            <asp:BoundField DataField="logDate" HeaderText="logDate" 
                SortExpression="logDate" />
            <asp:BoundField DataField="logTime" HeaderText="logTime" 
                SortExpression="logTime" />
        </Fields>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
    </asp:DetailsView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:SecLogConnectionString %>" 
        SelectCommand="SELECT * FROM [logMessage] WHERE ([id] = @id)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="1" Name="id" QueryStringField="queryID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>


</asp:Content>
